<template>
    <div class="tape-warpper">
        <div class="tape clearfix">
            <div class="tape-left">
                <div class="xiangqing">商品详情</div>
                <i class="iconfont icon-anjianfengexian"></i>
                <!--以下存放商品名字,用键盘的商品来做例子-->
                <div class="goods-name">{{ goodsName }}</div>
            </div>

            <div class="tape-right">
                <a href="javascript:" class="seller-contact">联系卖家</a>
                <i class="iconfont icon-anjianfengexian"></i>
                <a href="javascript:" class="evaluation">用户评价</a>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props:["goodsName"]
};
</script>

<style scoped>
.tape-warpper{
    width: 100%;
    height: 63px;
    background: white;
    border-top: 1px solid rgb(224,224,224);
    position: sticky;
    left: 0;
    top: 0;
    box-shadow: 0 5px 5px rgba(0, 0, 0,.07);
    z-index: 999;
}

.tape{
    width: 1200px;
    height: 63px;
    margin: 0 auto;
}

/*设置头部粘滞条内容的样式*/
.tape-left{
    float: left;
    font-size: 18px;
    margin-top: 20px;
}

.tape-left > *{
    float: left;
}

.tape-left .goods-name{
    color: #616161;
    font-size: 12px;
    margin-top: 5px;
}

.tape-left .icon-anjianfengexian{
    margin-top: 5px;
    font-size: 18px;
    text-align: center;
}

.tape-right{
    float: right;
    margin-top: 20px;
}

.tape-right a,
.tape-right i{
    font-size: 16px;
    margin-top: 20px;
    color: #616161;
}

</style>